
using _RobotInspection.Models;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace RobotInspection.Interfaces
{
    /// <summary>
    /// 点检记录自动生成服务接口
    /// </summary>
    public interface IInspectionRecordGeneratorService
    {
        /// <summary>
        /// 根据计划周期自动生成点检记录
        /// </summary>
        /// <param name="targetDate">目标日期，如果为空则使用当前日期</param>
        /// <returns>生成结果</returns>
        Task<ActionResult<ApiResponse<object>>> GenerateInspectionRecords(DateTime? targetDate = null);

        /// <summary>
        /// 为指定计划生成点检记录
        /// </summary>
        /// <param name="planId">计划ID</param>
        /// <param name="targetDate">目标日期</param>
        /// <returns>生成结果</returns>
        Task<ActionResult<ApiResponse<object>>> GenerateInspectionRecordsForPlan(long planId, DateTime targetDate);
    }
}